

def del_dict_key(data, keys_to_remove):
    for key in keys_to_remove:
        data.pop(key, None)
    return data


def time_trans_str_s(a):
    if not a:
        return ""
    if '.' in str(a):
        tmp = str(a).split('.')
        del tmp[-1]
        tmp = '.'.join(tmp)
    else:
        tmp = str(a)
    return tmp